package com.osdp.gateway.service;

import org.springframework.cloud.gateway.route.RouteDefinition;

import java.util.Collection;
import java.util.List;

/**
 * 路由配置操作
 */
public interface IRouteService {
    public String getTenantRouteConfig(String tenantId);

    public RouteDefinition loadTenantRoute(String tenantId,String routeId);

    public List<RouteDefinition> getTenantRoutes(String tenanId);

    public void saveRoute(String tenantId, String routeConfig);

    public Boolean savaGatewayRoutes(Collection<RouteDefinition> routeDefinitionList);

    public Boolean saveTenantRoutes(String tenantId, Collection<RouteDefinition> routeDefinitions);

    public Boolean saveTenantRoute(String tenantId, RouteDefinition routeDefinition);

    public Boolean updteTenantRoute(String tenantId, RouteDefinition routeDefinition);

    public Boolean removeTenantRoute(String tenantId, String routeId);
}
